package vcp.models;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

/**
 * Orders Track Model
 *
 */
public class OrdersTrackModel  extends AbstractModel{
	
	/**
	 * Track order request
	 * @param bean
	 */
	public void trackOrder(Orders bean) {
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);	
		msg = new Message(bean,"TrackOrder");	
		 try {
				client.sendToServer(msg);				
		 }
		 catch (Exception ex)
		    {
			 System.out.println(ex.toString()+" OrderControl->TrackOrder");
		    }			
	}
}
